package com.sfh.dog.ui;

import java.util.Timer;
import java.util.TimerTask;

import cn.bmob.v3.BmobUser;
import cn.bmob.v3.listener.SaveListener;

import com.sfh.dog.R;
import com.sfh.dog.ui.base.BaseActivity;

import android.content.Intent;
import android.os.Bundle;

public class WelcomeActivity extends BaseActivity
{

    @Override
    protected void onCreate(Bundle arg0)
    {
        super.onCreate(arg0);
        setContentView(R.layout.welcome_layout);
        gotoMainUI();
      
    }
    
    
    private void gotoMainUI()
    {
        TimerTask task = new TimerTask()
        {
            
            @Override
            public void run()
            {
               Intent intent = new Intent(WelcomeActivity.this, DogMainActivity.class);
               startActivity(intent);
               finish();
            }
        };
        
        new Timer().schedule(task, 5000);
    }
}
